package com.clement.spring.study.mapper;

import com.clement.spring.study.model.Book;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * Created by Clement on 2017/2/27.
 */
@Mapper
public interface BookMapper {

    @Select("select * from book where id = #{id}")
    Book getBookById(@Param("id") String id);

}
